package com.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dao.PayDao;
import com.model.Pay;
import com.service.PayService;
@Component("payService")
public class PayServiceImpl implements PayService{
	private PayDao payDao;

	public PayDao getPayDao() {
		return payDao;
	}

	@Resource
	public void setPayDao(PayDao payDao) {
		this.payDao = payDao;
	}

	public void addPay(Pay pay) {
		payDao.addPay(pay);
	}

	public void deletePay(Pay pay) {
		payDao.deletePay(pay);
	}

	public boolean exists(Pay pay) {
		return payDao.exists(pay);
	}

	public Pay getPay(int id) {
		
		return payDao.getPay(id);
	}

	public List<Pay> getPayList(String hql) {
		return this.payDao.getPayList(hql);
	}

	public void updatePay(Pay pay) {
		payDao.updatePay(pay);
	}

}
